<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xlmns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="author" content="lamtoan" />

	<title>ADMIN PANEL</title>
</head>
<body>	
<?php
if(isset($_REQUEST['id'])){
    include("lib_db.php");
include("function.php");
    if(isset($_REQUEST['id'])){$id=$_REQUEST['id'];}
	$sql="select * from bill where idmember='$id'";$query=select_list($sql);
	if($query){echo "<script>alert('Không thể xóa được vì có đơn hàng liên quan');window.location='member.php';</script>";exit();}
    $sql="delete from member where idmember='$id'";
    $query=exec_update($sql);
    
    header("location:member.php");exit();
}

?>
</body>
</html>